package com.example.consumptionrecords.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 孙敬佳
 * 2024 \ 02 \ 06
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SuperEntity {

	private Integer pageSize;

	private Integer pageIndex;

	private Integer size;

	private Integer index;

	public Integer getSize() {
		return pageSize;
	}

	public Integer getIndex() {
		return pageSize * (pageIndex - 1);
	}
}
